Skip to content

Scale Triton from zero replicas on RepositoryIndex - #85

Merged
kondratyevd merged 32 commits into
mainfrom
scale-from-zero
Sep 1, 2026
Merged

Scale Triton from zero replicas on RepositoryIndex#85
kondratyevd merged 32 commits into
mainfrom
scale-from-zero

Conversation

@kondratyevd

@kondratyevd kondratyevd commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

When Triton is at 0 replicas, a RepositoryIndex request scales it to max(1, keda.minReplicaCount) replicas. Envoy returns the index only after it has a healthy Triton upstream; otherwise the index is rejected.

KEDA continues to handle scaling above the wake target and scaling back down. After holdMinReplicasSeconds with no new index, minReplicaCount is restored to the configured idle value. Helm omits spec.replicas on the Triton Deployment so it does not override KEDA.

Requires keda.enabled: true and envoy.enabled: true. Set keda.minReplicaCount: 0 to release all replicas when idle. The Geddes CMS example values enable this.

New values

Parameter Default Description
scaleFromZero.enabled false Scale Triton from 0 replicas on RepositoryIndex
scaleFromZero.readyTimeoutSeconds 300 Time to wait for a healthy Triton upstream before rejecting RepositoryIndex
scaleFromZero.holdMinReplicasSeconds 300 Time to keep minReplicaCount at the wake target after the last RepositoryIndex
scaleFromZero.admissionImage python:3.11-slim Image for the admission sidecar on the Envoy pod
keda.pollingInterval 30 How often KEDA polls Prometheus
keda.cooldownPeriod 120 Time to wait after the last inactive trigger before scaling to minReplicaCount

kondratyevd and others added 30 commits May 25, 2026 19:55
… until server is up and ready before replying
… until server is up and ready before replying
…esh other parameters/comments and update probe defaults
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
kondratyevd and others added 2 commits September 1, 2026 12:01
…ueued wakes

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@kondratyevd

Copy link
Copy Markdown
Collaborator Author

Ran Claude code review until it stopped returning new findings. Ready to merge.

@kondratyevd
kondratyevd merged commit db73925 into main Sep 1, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants